﻿using PostSharp.Aspects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vjezbe2;

namespace TopUpService.AOP.Aspects
{
    [Serializable]
    class ExceptionHandlerAspect : OnExceptionAspect
    {
        public override void OnException(MethodExecutionArgs args)
        {
            if (ExceptionHandler.Handle(args.Exception))
            {
                args.FlowBehavior = FlowBehavior.Continue;
            }
        }
    }
}
